import { BaseCommand } from "./BaseCommand";
import { API_EVENT } from "@/FrontProcessing/interface/api.interface";
/**
 * Cmd_Model_Add
 * @description 模型添加
 */
export class Cmd_Model_Add extends BaseCommand {
  event = API_EVENT.MODEL_ADD;

  execute(): boolean {
    this.system.history.push(this);
    this.system.app.add(this.params);
    this.log();
    return true;
  }

  undo(): boolean {
    this.system.app.remove(this.params);
    this.system.history.remove(this);
    return true;
  }
}
